package com.bestcem.xm.label.grpc.service.param.label;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 修改标签值顺序 参数校验
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/5/21
 */

@Getter
@Setter
public class BatchUpdateLabelValueParm {

    @NotBlank(message = "标签值id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "标签值id格式错误")
    private String id;

    @NotNull(message = "标签值序号不能为空")
    private Integer serial;

}
